﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsprovince" targetNamespace="http://tempuri.org/dsprovince.xsd" xmlns:mstns="http://tempuri.org/dsprovince.xsd" xmlns="http://tempuri.org/dsprovince.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="E_hotelConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="E_hotelConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.E_hotelConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="provinceTableAdapter" GeneratorDataComponentClassName="provinceTableAdapter" Name="province" UserDataComponentName="provinceTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="E_hotelConnectionString (Web.config)" DbObjectName="[E-hotel].dbo.province" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="false" GeneratorGetMethodName="GetProvinceByCountryID" GetMethodModifier="Public" GetMethodName="GetProvinceByCountryID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetProvinceByCountryID" UserSourceName="GetProvinceByCountryID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        provinceID, provinceName, countryID
FROM            province
WHERE        (countryID = @countryID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="countryID" ColumnName="countryID" DataSourceName="[E-hotel].dbo.province" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@countryID" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="countryID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="provinceID" DataSetColumn="provinceID" />
              <Mapping SourceColumn="provinceName" DataSetColumn="provinceName" />
              <Mapping SourceColumn="countryID" DataSetColumn="countryID" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsprovince" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="dsprovince" msprop:Generator_UserDSName="dsprovince" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="province" msprop:Generator_UserTableName="province" msprop:Generator_RowDeletedName="provinceRowDeleted" msprop:Generator_TableClassName="provinceDataTable" msprop:Generator_RowChangedName="provinceRowChanged" msprop:Generator_RowClassName="provinceRow" msprop:Generator_RowChangingName="provinceRowChanging" msprop:Generator_RowEvArgName="provinceRowChangeEvent" msprop:Generator_RowEvHandlerName="provinceRowChangeEventHandler" msprop:Generator_TablePropName="province" msprop:Generator_TableVarName="tableprovince" msprop:Generator_RowDeletingName="provinceRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="provinceID" msprop:Generator_UserColumnName="provinceID" msprop:Generator_ColumnPropNameInRow="provinceID" msprop:Generator_ColumnVarNameInTable="columnprovinceID" msprop:Generator_ColumnPropNameInTable="provinceIDColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="provinceName" msprop:Generator_UserColumnName="provinceName" msprop:Generator_ColumnPropNameInRow="provinceName" msprop:Generator_ColumnVarNameInTable="columnprovinceName" msprop:Generator_ColumnPropNameInTable="provinceNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="countryID" msprop:Generator_UserColumnName="countryID" msprop:Generator_ColumnPropNameInRow="countryID" msprop:Generator_ColumnVarNameInTable="columncountryID" msprop:Generator_ColumnPropNameInTable="countryIDColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:province" />
      <xs:field xpath="mstns:provinceID" />
    </xs:unique>
  </xs:element>
</xs:schema>